home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac-Source 1994 July
/
Mac-Source_July_1994.iso
/
C and C++
/
Libraries
/
TurboTCP 1.0.1
/
MiniTelnet.source
/
MiniTelnet.const.h
< prev
next >
Wrap
Text File
|
1993-12-10
|
2KB
|
76 lines
/*
** MiniTelnet.const.h
**
** MiniTelnet application
** Constants used by application
**
** Copyright © 1993, FrostByte Design / Eric Scouten
**
*/
#pragma once
// MiniTelnet file parameters
#define kAppSignature 'dTCP'
#define kSettingsFileType 'dTSR'
// memory size information
#define kExtraMasters 4 // adjust based on observations
#define kRainyDayFund 20480
#define kCriticalBalance 20480
#define kToolboxBalance 20480
// Telnet connection parameters
#define kTelnetPort 23
#define kTelnetRecBufferSize 16384
#define kTelnetAutoRecSize 4
#define kTelnetAutoRecNum 4
// resource IDs
#define DLOGAboutBox 1098
// miscellaneous constants
#define kSplashScreenTicks 180 // how long to display splash screen (3 seconds)
#define telnetPort 23
// terminal emulation modes
typedef enum TermNumber {
termUnknown = 0,
termMax // highest terminal # defined
};
// Telnet settings record
#define kTSRsignature 0x518C // proper value for signature field
#define kTSRversion 0 // current version of settings record
typedef struct TelnetSettingsRec {
short signature; // ensure we’ve got our kind of file
short settingsVersion; // version of settings record
short settingsMinVersion; // minimum compatible version of settings
char unused [10]; // align hostname on 16-byte interval
char hostName [256]; // user’s name for host & port number
char termEmulation [48]; // IANA name of terminal emulation
char backspaceChar; // character to substitute for backspace
Boolean closeOnSessionEnd; // close window when session ends
Boolean showDebug; // show debugging codes
} TelnetSettingsRec;